\documentclass[11pt,a4paper]{article}
\begin{document}
\title{RoboFight Administrator's Guide}
\author{Carl A. D\"{u}vel\\c.a.duevel@gmail.com}
\maketitle
\section{Admin script}
The admin script can be used to accomplish the following tasks:
\begin{itemize}
\item start/stop the RoboFight server
\item start/stop the web server
\item specify the ip address that the clients will connect to
\end{itemize}
All command line options are displayed by typing: \textit{admin.sh help}.
\section{RoboFight server}
The RoboFight server has some optional parameters that are passed to the
server via the admin script:
\begin{description}
\item[-port PORT] Starts the server on a different port than 1098.
\item[-host IP] Starts the server on a distinct ip. If there is only one non-loop-back address on the host machine, this option can be omitted.
\item[-drop] If this option is passed to the server, the database is dropped and a new one is created.
\end{description}
So if you would wanted to start the server on the host ip 193.168.3.2 you would simply issue the following command: \\
\textit{admin.sh startGameServer -host 193.168.3.2}\\\\
The most important folders and files are:
\begin{description}
\item[robofight/DB] The database directory: If an existing Derby database should be used, it has to be here.
\item[robofight/log] Log file of the server.
\item[robofight/derby.log] Log file of the database.
\item[robofight/etc] Directory with configuration files for the server.
\end{description}
\section{Jetty webserver}
The Jetty webserver can be started or stopped by issuing the following commands:
\begin{itemize}
\item \textit{admin.sh startWebServer}
\item \textit{admin.sh stopWebServer}
\end{itemize}
To specify to which ip address the client served via Java Web Start by the webserver
will connect to. Use the following command:\\
\textit{admin.sh setServerIP IP}\\
For more information about Jetty please visit http://www.mortbay.org/jetty/.
\end{document}
